﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddAdmin.aspx.cs" Inherits="Admin.Admin.AdminMan.AddAdmin" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/common.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .tips {
            color: red;
        }
    </style>
    
</head>
<body>
    <form id="form1" runat="server">
    <div id="man_zone">
        <table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" class="table_style">
            <tr>
                <td colspan="4">
                    <a href="AdminList.aspx" style="color: Green; padding-left: 20px;">>>返回</a>
                </td>
            </tr>
            <tr>
                <td class="left_title_2">
                    管理员帐号
                </td>
                <td>
                    <asp:TextBox ID="AdminAccount" runat="server" CssClass="TextBox"></asp:TextBox>
                    <span class="tips"></span>
                </td>
            </tr>
            <tr>
                <td class="left_title_1">
                    密码
                </td>
                <td>
                    <asp:TextBox ID="Password" runat="server" CssClass="TextBox"></asp:TextBox>
                    <span class="tips"></span>
                </td>
            </tr>
            <tr>
                <td class="left_title_1">
                </td>
                <td>
                    <asp:Button ID="Add" runat="server" Text="保存" OnClientClick="return check()" CssClass="Button" OnClick="Add_Click" />
                    
                </td>
            </tr>
        </table>
    </div>
    </form>
    <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        function check() {

            if ($("#AdminAccount").val() == "") {
                $("#AdminAccount").next().html("管理员帐号不能为空");

                return false;
            } else {

                $("#AdminAccount").next().html("");
            }

            if ($("#Password").val() == "") {
                $("#Password").next().html("密码不能为空");

                return false;
            } else {

                $("#Password").next().html("");
            }

            return true;
        }
    </script>
</body>
</html>
